/*
 * XML Type:  SecurityListRequestMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.SecurityListRequestMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML SecurityListRequestMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class SecurityListRequestMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractRequestMessageSetImpl implements net.ofx.types.x2003.x04.SecurityListRequestMessageSetV1
{
    
    public SecurityListRequestMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SECLISTTRNRQ$0 = 
        new javax.xml.namespace.QName("", "SECLISTTRNRQ");
    
    
    /**
     * Gets array of all "SECLISTTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionRequest[] getSECLISTTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SECLISTTRNRQ$0, targetList);
            net.ofx.types.x2003.x04.SecurityListTransactionRequest[] result = new net.ofx.types.x2003.x04.SecurityListTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "SECLISTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionRequest getSECLISTTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionRequest)get_store().find_element_user(SECLISTTRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "SECLISTTRNRQ" element
     */
    public int sizeOfSECLISTTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SECLISTTRNRQ$0);
        }
    }
    
    /**
     * Sets array of all "SECLISTTRNRQ" element
     */
    public void setSECLISTTRNRQArray(net.ofx.types.x2003.x04.SecurityListTransactionRequest[] seclisttrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(seclisttrnrqArray, SECLISTTRNRQ$0);
        }
    }
    
    /**
     * Sets ith "SECLISTTRNRQ" element
     */
    public void setSECLISTTRNRQArray(int i, net.ofx.types.x2003.x04.SecurityListTransactionRequest seclisttrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionRequest)get_store().find_element_user(SECLISTTRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(seclisttrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "SECLISTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionRequest insertNewSECLISTTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionRequest)get_store().insert_element_user(SECLISTTRNRQ$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "SECLISTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.SecurityListTransactionRequest addNewSECLISTTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.SecurityListTransactionRequest)get_store().add_element_user(SECLISTTRNRQ$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "SECLISTTRNRQ" element
     */
    public void removeSECLISTTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SECLISTTRNRQ$0, i);
        }
    }
}
